package com.cs342.uwosh.cloudycontacts.tasks.db;
import java.util.List;

import com.cs342.uwosh.cloudycontacts.Category;
import com.cs342.uwosh.cloudycontacts.MainActivity;
import com.cs342.uwosh.cloudycontacts.SqlConnect;





import android.os.AsyncTask;

public class CreateCategoryTask extends AsyncTask<Object, Object, List<Category>>{

	@Override
	protected List<Category> doInBackground(Object... params) {
		SqlConnect db = MainActivity.db;
		db.createCategory((Category)params[0]);
		return null;
	}
	
	@Override
	protected void onPostExecute(List<Category> result)
	{
		new GetAllCategoryNamesTask().execute();
	}
}
